﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class AfterLogin : System.Web.UI.MasterPage
{

    public String mainCategory = "-";

    protected void Page_Load(object sender, EventArgs e)
    {
        if (Session["userId"]== null || Session["userId"].Equals(""))
        {
            this.Response.Redirect("~/home.aspx?role=user&returnUrl="+this.Request.Url);

        }
        switch (mainCategory)
        {
            case "HOME":
                Menu_HyperLink_Home.CssClass = "current";
                break;
            case "ACCOUNTS":
                Menu_HyperLink_YourAccounts.CssClass = "current";
                break;
            case "TRANSFER":
                Menu_HyperLink_PaymentTransfer.CssClass = "current";
                break;
            case "SERVICE":
                Menu_HyperLink_CustomerService.CssClass = "current";
                break;
            case "REWARDS":
                Menu_HyperLink_Rewards.CssClass = "current";
                break;
        }

        

    }

    /*
    pr
        else if (userUrl.AbsolutePath.LastIndexOf("final_reward.aspx") >= 0)
        {
            mainCategory = "REWARDS";
            Menu_HyperLink_Rewards.CssClass = "current";
        }

     

    }
     * */



}
